Dear All, |
Re: Opening a Excel Spreadsheet and accessing a CELL in DXL Regards, Mathias Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS |
Re: Opening a Excel Spreadsheet and accessing a CELL in DXL Have a look at the attached file. Change the last bit to set the attribute. Attachments attachment_14554197_ExcelGetCellValues.dxl |
Re: Opening a Excel Spreadsheet and accessing a CELL in DXL SystemAdmin - Thu Nov 18 07:22:33 EST 2010 1) Office 10 2) DOORS 9.3 Any idea what might be the cause? and work-around it? |
Re: Opening a Excel Spreadsheet and accessing a CELL in DXL SpaceApe - Sun Dec 18 10:42:56 EST 2011
Tried the DXL script with Excel 2010. It did work in the situation you described when I used int iValue = 0
|
Re: Opening a Excel Spreadsheet and accessing a CELL in DXL SystemAdmin - Mon Dec 19 04:00:24 EST 2011
Tried the DXL script with Excel 2010. It did work in the situation you described when I used int iValue = 0
Thanks. It works with integer type variable. I didn't expect excel variable types to match to DXL variable types. Thanks again |
Re: Opening a Excel Spreadsheet and accessing a CELL in DXL Mathias Mamsch - Sun Nov 14 14:01:03 EST 2010 Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS new to this forum i need to import values from excel to doors attributes. I can get value from single cell to attribute in doors but problem i am facing is when the cells are MERGED in excel my script stops. if u have any idea on this please let me know. below is where i am getting the cell value from excel code section
string getCellValue(OleAutoObj objExcelSheet, int row, int col)
put(autoArgs,row) // put the row number of excel sheet to args Thanks in advance |
Re: Opening a Excel Spreadsheet and accessing a CELL in DXL Avinash Singh - Thu Oct 24 02:56:43 EDT 2013 new to this forum i need to import values from excel to doors attributes. I can get value from single cell to attribute in doors but problem i am facing is when the cells are MERGED in excel my script stops. if u have any idea on this please let me know. below is where i am getting the cell value from excel code section
string getCellValue(OleAutoObj objExcelSheet, int row, int col)
put(autoArgs,row) // put the row number of excel sheet to args Thanks in advance Did some investigating. Open this file for an example (or whereever it is on your computer)
Function "setCell()" line #172 suggests if you convert cell "2,4" to "B4" you can use the "Range" property to get your "Cells" range. It uses function "intToCol()" starting line #140 to convert "2" to "B". In any event, if you have to arguments to a property (such as "Cells") you need to give them names. I could not find the names, but perhaps they are "rowNumber" and "colNumber".
-Louie |
Re: Opening a Excel Spreadsheet and accessing a CELL in DXL ( Hi ! For your next try ... There is a very complete example to deal with the excel automation here : http://www.galactic-solutions.com/downloadsv/GalacticDownloadExcel.htm ... I hope there is no offense to provide an external link ! )
|
Re: Opening a Excel Spreadsheet and accessing a CELL in DXL SystemAdmin - Thu Feb 09 09:00:26 EST 2012 Hi I have been trying migrating the string variable into a int variable as described. In the end I get something display but is always "0". I am using DOORS 9.6 and office 10. I tried to format the cells to txt, to General or numeric. To be honest it would help a lot to make it work with text. Wondering if somebody can help. Antonio |
Re: Opening a Excel Spreadsheet and accessing a CELL in DXL aeggarcia - Thu Jun 16 11:25:42 EDT 2016 Hi I have been trying migrating the string variable into a int variable as described. In the end I get something display but is always "0". I am using DOORS 9.6 and office 10. I tried to format the cells to txt, to General or numeric. To be honest it would help a lot to make it work with text. Wondering if somebody can help. Antonio Try using oleGet(objCell, "Text", sValue) instead of oleGet(objCell, "Value", sValue)
That works for me with both, number or text values in the excel cell. |